package com.systop.asset.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * <p>ClassName : MaterialDisposal</p>
 * <p>Description : </p>
 *
 * @author 孙伟光
 * @version 1.0
 * @date 2025/7/7 14:22
 */
public class MaterialDisposal  extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 处置单ID */
    private Long id;

    /** 处置单号 */
    private String orderNo;

    /** 仓库ID */
    private Long warehouseId;

    /** 仓库名称 */
    private String warehouseName;

    /** 处置类型 1-报废清理 2-盘亏处理 3-毁损清理 4-丢失 5-其他 */
    private Integer type;

    /** 状态 0-待处置 1-已处置 2-已取消 */
    private Integer status;

    /** 操作人 */
    private Long operatorId;

    /** 操作人 */
    private String operator;

    /** 处置资产详情单*/
    private List<MaterialDisposalDetail> materialDisposalDetails;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo()
    {
        return orderNo;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    public Long getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public List<MaterialDisposalDetail> getMaterialDisposalDetails() {
        return materialDisposalDetails;
    }

    public void setMaterialDisposalDetails(List<MaterialDisposalDetail> materialDisposalDetails) {
        this.materialDisposalDetails = materialDisposalDetails;
    }

    public Long getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Long warehouseId) {
        this.warehouseId = warehouseId;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orderNo", getOrderNo())
                .append("type", getType())
                .append("status", getStatus())
                .append("operator", getOperator())
                .append("operatorId", getOperatorId())
                .append("remark", getRemark())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
